package util
{
	import flash.display.Sprite;
	
	public class Ball extends Sprite
	{
		private var _vx:Number = 0;
		private var _vy:Number = 0;
		private var _copy:Ball;
		private var _radius:Number;
		private var _color:uint;
		private var _mass:Number;
		
		public function Ball(radius:Number=1,color:uint=0)
		{
			this._radius = radius;
			this._color = color;
			this.graphics.beginFill(color);
			this.graphics.drawCircle(0,0,radius);
			this.graphics.endFill();
			this._mass = radius;
		}
		
		public function set vx(vx:Number):void {
			_vx = vx;
		}
		
		public function get vx():Number {
			return _vx;
		}
		
		public function set vy(vy:Number):void {
			_vy = vy;
		}
		
		public function get vy():Number {
			return _vy;
		}
		
		public function get copy():Ball {
			return this._copy;
		}
		
		public function set copy(copy:Ball):void {
			this._copy = copy;
		}
		
		public function get radius():Number {
			return this._radius;
		}
		
		public function get color():Number {
			return this._color;
		}
		
		public function set mass(mass:Number):void {
			this._mass = mass;
		}
		
		public function get mass():Number {
			return _mass;
		}
	}
}